﻿using NUnit.Framework;

namespace fluentvaly.Tests.ValidationStatementTests
{
    [TestFixture]
    public class Validate_NoExceptionFixture
    {
        [Test]
        public void ValidateUser_AllOk_ValidationReasonsAreEmpty()
        {
            var validator = new Validator(new InvariantSetup());

            var user = new UserTestObject
                           {
                               AcceptyAGBs = true,
                               Address = new Address {HouseNumber = "5", StreetName = "Some street"},
                               Password = "pass",
                               PasswordConfirmation = "pas",
                               UserName = "user"
                           };

            var resulty = validator.Validate(user);

            Assert.That(resulty.Passed, Is.True);
        }
    }
}
